package com.luck.model.pojo;

/**
 * 分页请求
 * Created by Hua wb on 2018/12/26.
 */
public class PageRequest {

    /**
     * 页数
     */
    private int index;

    /**
     * 每页条数
     */
    private int limit;

    private int start;

    public PageRequest(int index, int limit) {
        this.index = index;
        this.limit = limit;
        this.start = (index - 1) * limit;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }
}
